﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZerAx.Net;

namespace BlockOS
{
    public enum ProtocolId: byte
    {
        ECHO = 0,
        REQUEST_DESCRIPTION,
        RESPONSE_DESCRIPTION,
        LOGIN,
        RESPONSE_LOGIN,
        LOGOUT,
        CHAT,
        REQUEST_CHUNK,
        RESPONSE_CHUNK,
        REQUEST_ENTITIES,
        RESPONSE_ENTITIES
    }

    public static class ProtocolIdExtensions
    {
        public static Packet CreatePacket(this ProtocolId id) => new Packet((byte)id);
    }
}
